package com.bestcem.xm.member.enums;

import com.bestcem.xm.common.core.enums.CommonEnum;

/**
 * @author ming.xue <ming.xue@idiaoyan.com>
 * @desc 系统状态
 * @date 2021-05-28
 */
public enum HealthStatusEnum implements CommonEnum {
    /**
     * 服务可用
     */
    UP("up", 1),

    /**
     * 服务不可用
     */
    DOWN("down", 2),

    /**
     * 维护中
     */
    UPGRADING("upgrading", 3);

    private String name;

    private int index;

    HealthStatusEnum(String name, int index) {
        this.name = name;
        this.index = index;
    }

    public int getIndex() {
        return index;
    }

    public String getName() {
        return name;
    }
}
